package com.example.dormitorysystem.mapper;

import com.example.dormitorysystem.entity.Auth;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 吉吉王国组
 * @since 2022-11-13
 */
public interface AuthMapper extends BaseMapper<Auth> {



    @Select("select * from auth where uid = #{uid} and username = #{username}")
    Auth selectByUidAndName(@Param("uid") Integer uid, @Param("username") String username);
}
